package com.lgj.service;

import com.lgj.dao.StudentDao;
import com.lgj.dao.StudentDaoImpl;
import com.lgj.domain.Student;

import java.util.ArrayList;

public class StudentServiceImpl implements StudentService{

    StudentDao studentDao = new StudentDaoImpl();

    @Override
    public ArrayList<Student> findAll() {
        ArrayList<Student> students = studentDao.findAll();
        return students;
    }

    @Override
    public Student findById(int id) {
        return null;
    }

    @Override
    public int updateOne(Student student) {
        return 0;
    }

    @Override
    public int updateMany(ArrayList<Student> students) {
        return 0;
    }

    @Override
    public int deleteOne(int id) {
        return 0;
    }

    @Override
    public int deleteMany(ArrayList<Integer> ids) {
        return 0;
    }
}
